package com.yyf.springboot2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.boot.autoconfigure.domain.EntityScan;

import java.beans.Transient;
import java.io.Serializable;


/**
 * <p>
 * 
 * </p>
 *
 * @author yyf
 * @since 2019-05-29
 */
@TableName("t_orderlist")
@EntityScan
@Data
public class TOrderlist implements Serializable {

    private static final long serialVersionUID = 1L;
	@TableId(type = IdType.AUTO)
	private Integer id;
	@TableField("goodsId")
	private Integer goodsId;
	private Integer num;
	@TableField("orderId")
	private Integer orderId;
	private Double price;
	private Double pv;
	@TableField("totalPV")
	private Double totalPV;
	@TableField("totalPrice")
	private Double totalPrice;
	private Double score = 0.0;
	@TableField("totalScore")
	private Double totalScore = 0.0;
	@TableField("goodsName")
	private String goodsName;

@TableField(exist = false)
	private String image;
	@Transient
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getPv() {
		return pv;
	}

	public void setPv(Double pv) {
		this.pv = pv;
	}

	public Double getTotalPV() {
		return totalPV;
	}

	public void setTotalPV(Double totalPV) {
		this.totalPV = totalPV;
	}

	public Double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Double getScore() {
		return score;
	}

	public void setScore(Double score) {
		this.score = score;
	}

	public Double getTotalScore() {
		return totalScore;
	}

	public void setTotalScore(Double totalScore) {
		this.totalScore = totalScore;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

}
